#ifndef TSB_BASE
#define TSB_BASE
/*
* 
* @license	Apache License 2.0
* @author	Eugene Kuznetsov
*
*/

#include <stdio.h>
#include "BaseTypes.hpp"
#include "BaseStates.hpp"

#define LINK_BUFFER_SIZE 256

#define FLAG_DEBUG
#define FLAG_DEBUG_LVL1
#define FLAG_DEBUG_LVL2
#define FLAG_DEBUG_LVL3
//#define FLAG_DEBUG_LVL4

#ifdef FLAG_DEBUG
#ifdef FLAG_DEBUG_LVL1
#define DBG_L1(x) printf x
#else
#define DBG_L1(x)
#endif
#ifdef FLAG_DEBUG_LVL2
#define DBG_L2(x) printf x
#else
#define DBG_L2(x)
#endif
#ifdef FLAG_DEBUG_LVL3
#define DBG_L3(x) printf x
#else
#define DBG_L3(x)
#endif
#ifdef FLAG_DEBUG_LVL4
#define DBG_L4(x) printf x
#else
#define DBG_L4(x)
#endif
#else
#define DBG_L1(x)
#define DBG_L2(x)
#define DBG_L3(x)
#define DBG_L4(x)
#endif

#endif
